package com.usefullc.system.query;

import com.usefullc.common.enums.QueryExpressTypeEnum;
import com.usefullc.system.service.component.extend.UsefulQueryField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author: Sampson
 * @date: 2022-04-14 08:51
 */
@Data
public class DataDictQuery extends BaseQuery {

    @UsefulQueryField
    @ApiModelProperty(notes = "父ID")
    private Long parentId;

    @UsefulQueryField
    @ApiModelProperty(notes = "编码")
    private String code;

    @UsefulQueryField(type=QueryExpressTypeEnum.LIKE_RIGHT,columnName = "code")
    @ApiModelProperty(notes = "编码like")
    private String codeLike;

    @UsefulQueryField
    @ApiModelProperty(notes = "值")
    private String value;

    @UsefulQueryField
    @ApiModelProperty(notes = "名称")
    private String name;

    @UsefulQueryField
    @ApiModelProperty(notes = "数据类型")
    private Integer type;
}
